package com.sun.consumer.service.impl;

import com.sun.api.SiteService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @version 1.0
 * @Package: com.sun.consumer.service.impl
 * @ClassName: consumer
 * @Author: sgq
 * @Date: 2023/12/5 14:13
 * @Description: TODD
 */
public class consumer {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        SiteService siteService = (SiteService) context.getBean("siteService");
        String kelvin = siteService.getName("kelvin");
        System.out.println(kelvin);
    }
}
